Component({
    properties: {
        prop_goods_info: {
            type: null
        },
        tabList: {
            type: null
        },
        min_micro: {
            type: null
        },
        roomdata: {
            type: null
        },
        knowledgeList: {
            type: null
        }
    },
    lifetimes: {
        attached: function() {
            this.setData({
                showPop: !1
            });
        }
    },
    observers: {
        tabList: function(e) {
            e.length > 0 && (console.log(e), this.setData({
                isPost: e[0].id
            }));
        }
    },
    data: {
        isPost: 1,
        currentIndex: 0,
        showPop: !1,
        micro_communities: [],
        page: 1,
        last_page: 1,
        knowledgeOption: {
            article_name: "title",
            base_name: "has_one_yz_supply_knowledge_base.title"
        }
    },
    methods: {
        changeTab: function(e) {
            this.setData({
                currentIndex: 0,
                isPost: e.detail.name
            });
        },
        swiperChange: function(e) {
            this.setData({
                currentIndex: e.detail.current
            });
        },
        gopage: function(e) {
            var t = e.currentTarget.dataset.status, a = e.currentTarget.dataset.id, o = e.currentTarget.dataset.backid;
            1 == t ? wx.navigateTo({
                url: "/packageD/directSeeding/livePage/livePage?id=" + a + "&playerType=live"
            }) : 2 == t ? wx.navigateTo({
                url: "/packageD/directSeeding/livePage/livePage?id=" + a + "&playerType=video&backid=" + o
            }) : 3 == t && wx.navigateTo({
                url: "/packageD/directSeeding/foreshow/foreshow?id=" + a
            });
        },
        tapShow: function() {
            1 == this.data.isPost && wx.navigateTo({
                url: "/packageA/others/GoodsComment/GoodsComment?gid=" + this.data.prop_goods_info.get_goods.id + "&istype=micro"
            }), 3 == this.data.isPost && wx.navigateTo({
                url: "/packageI/knowledge/knowledgeSearch/knowledgeSearch?plu=project-template-good&gid=" + this.data.prop_goods_info.get_goods.id
            });
        },
        goMicro: function(e) {
            var t = e.currentTarget.dataset.id;
            wx.navigateTo({
                url: "/packageC/micro_communities/microCommentDetails/microCommentDetails?stickId=" + t
            });
        },
        closeShow: function() {
            this.setData({
                showPop: !1
            });
        },
        onListClick: function(e) {
            var t = e.detail, a = t.id, o = t.base_id, i = t.knowledge_base_id;
            wx.navigateTo({
                url: "/packageI/knowledge/knowledgeDetail/knowledgeDetail?id=".concat(a, "&bid=").concat(o || i, "&plu=project-template")
            });
        }
    }
});